package com.matt.repository.statictics;

import com.matt.domain.statistics.StatPaidContract;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/7/17
 * *******************************
 */
public interface StatPaidContractRepository extends JpaRepository<StatPaidContract, String> {
    StatPaidContract findByAreaIdAndProductIdAndCreatedBetween(String areaId, String productId, Date begin, Date end);
    List<StatPaidContract> findByCreatedBetween(Date begin, Date end);
}
